home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 June / ccd0605.iso / Software / Freeware / Programare / highlight / highlight-W32GUI-2.2-10b-Setup.exe / {app} / src / xhtmlgenerator.h < prev    next >
C/C++ Source or Header  |  2005-03-20  |  2KB  |  71 lines

  1. /***************************************************************************
  2.                          xhtmlgenerator.h  -  description
  3.                              -------------------
  4.     begin                : Mo Jun 21 2004
  5.     copyright            : (C) 2004 by Andre Simon
  6.     email                : andre.simon1@gmx.de
  7.  ***************************************************************************/
  8.  
  9. /***************************************************************************
  10.  *                                                                         *
  11.  *   This program is free software; you can redistribute it and/or modify  *
  12.  *   it under the terms of the GNU General Public License as published by  *
  13.  *   the Free Software Foundation; either version 2 of the License, or     *
  14.  *   (at your option) any later version.                                   *
  15.  *                                                                         *
  16.  ***************************************************************************/
  17.  
  18.  
  19. #ifndef XHTMLGENERATOR_H
  20. #define XHTMLGENERATOR_H
  21.  
  22. #include "htmlgenerator.h"
  23.  
  24. namespace highlight {
  25.  
  26. /**
  27.    \brief This class generates XHTML.
  28.  
  29.    It contains information about the resulting document structure (document
  30.    header and footer), the colour system, white space handling and text
  31.    formatting attributes.
  32.  
  33. * @author Andre Simon
  34. */
  35.  
  36.  
  37. class XHtmlGenerator : public highlight::HtmlGenerator
  38.   {
  39.   public:
  40.  
  41.     /** Constructor
  42.      \param colourTheme Name of Colour theme to use
  43.      \param enc encoding name
  44.      \param omitEnc switch to omit encoding information
  45.      \param withAnchors Test if HTML anchors should be attached to line numbers
  46.     */
  47.     XHtmlGenerator(const string &colourTheme,
  48.                    const string &enc,
  49.                    bool omitEnc=false,
  50.                    bool withAnchors = false);
  51.  
  52.     XHtmlGenerator();
  53.  
  54.     /** Destructor*/
  55.     virtual ~XHtmlGenerator() {};
  56.  
  57.   private:
  58.  
  59.     /** prints document header
  60.        \param  title Title of the document
  61.     */
  62.     string getHeader(const string &title);
  63.  
  64.     string getHeaderStart(const string &title);
  65.  
  66.   };
  67.  
  68. }
  69.  
  70. #endif
  71.